﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuanLyGiaPha
{
    public partial class frmMainForm : Form
    {
        public frmMainForm()
        {
            InitializeComponent();
        }

        private void nghềNghiệpToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmNgheNghiep nn = new frmNgheNghiep();
            this.Height = nn.Height + 50;
            this.Width = nn.Width;
            nn.WindowState = FormWindowState.Maximized;
            nn.MdiParent = this;
            nn.Show();
        }

        private void quêQuánToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmQueQuan qq = new frmQueQuan();
            this.Height = qq.Height + 50;
            this.Width = qq.Width;
            qq.WindowState = FormWindowState.Maximized;
            qq.MdiParent = this;
            qq.Show();
        }

        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Bạn có muốn thoát ?", "Thông báo..", MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                this.Close();
            }
        }

        private void nguyênNhânMấtToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmNguyenNhanMat nguyenhan = new frmNguyenNhanMat();
            this.Height = nguyenhan.Height + 50;
            this.Width = nguyenhan.Width;
            nguyenhan.WindowState = FormWindowState.Maximized;
            nguyenhan.MdiParent = this;
            nguyenhan.Show();
        }

        private void loạiQuanHệToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmLoaiQuanHe qh = new frmLoaiQuanHe();
            this.Height = qh.Height + 50;
            this.Width = qh.Width;
            qh.WindowState = FormWindowState.Maximized;
            qh.MdiParent = this;
            qh.Show();
        }

        private void loạiThànhTíchToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmLoaiThanhTich tt = new frmLoaiThanhTich();
            this.Height = tt.Height + 50;
            this.Width = tt.Width;
            tt.WindowState = FormWindowState.Maximized;
            tt.MdiParent = this;
            tt.Show();
        }

        private void địaĐiểmMaiTángToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmDiaDiemMaiTang mt = new frmDiaDiemMaiTang();
            this.Height = mt.Height + 50;
            this.Width = mt.Width;
            mt.WindowState = FormWindowState.Maximized;
            mt.MdiParent = this;
            mt.Show();
          
        }

        
    }
}
